<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<!-- start content -->

<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#example').dataTable();
	} );
</script>


<div style="width:550px;float:left !important;">

<div id="dt_example">	
	
	<div id="demo"> 
					
		<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
			<thead>
				<tr>
					<th>Id</th>
					<th>Matricola</th>
					<th>Nome</th>
					<th>Cognome</th>
					<th>Ruolo</th>
					<th>Sede</th>
				
				</tr>
			</thead>
			<tbody>
				
				
				<c:forEach items="${requestScope.dipendenti}" var="dipendenti" >		
					
					<tr class="gradeA">
						<td class="center">${dipendenti.id}</td>
						<td>${dipendenti.matricola}</td>
						<td>${dipendenti.nome}</td>
						<td>${dipendenti.cognome}</td>
						<td>${dipendenti.ruolo.nome}</td>
						<td>${dipendenti.sede.luogo}</td>								
					</tr>							
				
				</c:forEach >
				
				
			</tbody>
			<tfoot>
				<tr>
					<th>Id</th>
					<th>Matricola</th>
					<th>Nome</th>
					<th>Cognome</th>
					<th>Ruolo</th>
					<th>Sede</th>			
				</tr>
			</tfoot>
		</table>
	</div>
	<div class="spacer"></div> 
	
</div>
<br/><br/>
</div>

<!-- end content -->
